package apimediator

import (
	"reflect"

	"zstackgo/pkg/header/message"
	"zstackgo/spring"
)

func init() {
	spring.RegisterInterface("header.apimediator.ApiMessageInterceptor", reflect.TypeOf((*ApiMessageInterceptor)(nil)).Elem())
}

type ApiMessageInterceptor interface {
	Intercept(msg message.APIMessage) (message.APIMessage, error)
}
